﻿using Mes.Domain.BoundedContext;

namespace Mes.Application.DTO.Results.MasterData
{
    public class MeasuringUnitResult : IdEntityResult
    {
        /// <summary>
        /// 计量单位名称
        /// </summary>
        public string UnitName { get; set; } = string.Empty;

        /// <summary>
        /// 计量单位编码
        /// </summary>
        public string UnitCode { get; set; } = string.Empty;

        /// <summary>
        /// 单位类型 关联计量单位类型配置表主键
        /// </summary>
        public int UnitType { get; set; } = 0;
        public string Type { get; set; } = string.Empty;

        /// <summary>
        /// 单位简称  例如  厘米 简称  cm
        /// </summary>
        public string Abbreviation { get; set; } = string.Empty;

        /// <summary>
        /// 关联换算单位 关联此表主键编号
        /// </summary>
        public int ConversionUnit { get; set; } = 0;
        public string Unit { get; set; } = string.Empty;

        /// <summary>
        /// 单位兑换比率  例如  dm：cm-> 1:10   格式为 XX:XX
        /// </summary>
        public string Ratio { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string? Note { get; set; } = string.Empty;
    }
}
